const CryptoJS = require('crypto-js')
let a = {
    "words": [
        -1582668877,
        -1780460576,
        -1010402063,
        912426148
    ],
    "sigBytes": 16
}

function decrypt_data(t) {
    let e = (i = t = String(t),
        o = CryptoJS.enc.Base64.parse(i),
        r = a,
        CryptoJS.AES.decrypt({
            ciphertext: o
        }, r, {
            mode: CryptoJS.mode.ECB,
            padding: CryptoJS.pad.Pkcs7
        }).toString(CryptoJS.enc.Utf8));
    var i, o, r;
    return JSON.parse(e)
}

function encrypt_data(t) {
    if (null == t)
        return null;
    var e = t
        , i = a
        , o = CryptoJS.AES.encrypt(e, i, {
        mode: CryptoJS.mode.ECB,
        padding: CryptoJS.pad.Pkcs7
    });
    return CryptoJS.enc.Base64.stringify(o.ciphertext)
}
t = '2024-08-01 15:34:07'
console.log(encrypt_data(t))